SSIDLINE=`cat /home/kenneth/Share/gitee/acw/mkswireless.ini | grep -E 'SSID'`&& echo ${SSIDLINE#*=}
PWDLINE=`cat /home/kenneth/Share/gitee/acw/mkswireless.ini | grep -E 'PASSWORD'`&& echo ${PWDLINE#*=}

SSID=\"${SSIDLINE#*=}\" && echo ${SSID}
PWD=\"${PWDLINE#*=}\" && echo \"${PWD}\"


sed -i "s/ssid=.*/ssid="${SSID}"/" /home/kenneth/Share/gitee/acw/wpa_supplicant.conf 
sed -i "s/psk=.*/psk="${PWD}"/" /home/kenneth/Share/gitee/acw/wpa_supplicant.conf

echo 'repaired complete!'


